package com.school.domain.dto.order;

import com.school.domain.dto.PageDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单信息表 查询参数")
public class SelectOrderDTO extends PageDTO {

    /**
     * 订单编号
     */
    @Schema(description = "订单编号")
    private Long orderId;

    /**
     * 客户姓名
     */
    @Schema(description = "客户姓名")
    private String userName;

    /**
     * 客户手机号码
     */
    @Schema(description = "客户手机号码")
    private String phone;

    /**
     * 下单日期
     */
    @Schema(description = "下单日期开始")
    private LocalDate orderDateStart;


    @Schema(description = "下单日期结束")
    private LocalDate orderDateEnd;

    /**
     * 下单时间
     */
    @Schema(description = "下单时间开始")
    private LocalTime orderTimeStart;


    @Schema(description = "下单时间结束")
    private LocalTime orderTimeEnd;

    /**
     * 总出库量开始
     */
    @Schema(description = "总出库量开始")
    private Integer totalRollsStart;

    /**
     * 总出库量结束
     */
    @Schema(description = "总出库量结束")
    private Integer totalRollsEnd;

    /**
     * 订单类别
     */
    @Schema(description = "订单类别")
    private String orderType;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
